import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { OneMapComponent } from "./one-map.component";
import { BaseInfoComponent } from './base-info/base-info.component';
import { MonitorComponent } from './monitor/monitor.component';
import { DialogVideoComponent } from './dialog-video/dialog-video.component';
import { MonitorMajorComponent } from './monitor-major/monitor-major.component';
import {IrrProjectComponent} from "./irr-project/irr-project.component";
import {IrrInfoComponent} from "./irr-info/irr-info.component";

const routes: Routes = [
  {
    path: "",
    component: OneMapComponent,
    children: [
      { path: "", component: BaseInfoComponent },
      { path: "base", component: BaseInfoComponent },
      { path: "monitor", component: MonitorComponent },
      { path: "irr-project", component: IrrProjectComponent },
      { path: "irr-info", component: IrrInfoComponent },
      { path: "major", component: MonitorMajorComponent }
    ]
  },
  {
    path: 'dialog-video',
    component: DialogVideoComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OneMapRoutingModule {}
